﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="EmpolyeeDetail.aspx.cs" Inherits="Empolyee_EmpolyeeDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="Server">
    <script type="text/javascript">
        function saveOK() {
            alert("保存员工信息成功！");
            location.href = 'EmpolyeeList.aspx';
        }
        function saveFail() {
            alert("保存员工信息失败！");
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="Server">
    <div>
        <ul class="formul">
            <li><span class="formtitle">用户名</span>
                <asp:TextBox ID="EmpolyeeName" runat="server"></asp:TextBox>
            </li>
            <li><span class="formtitle">登录帐号</span>
                <asp:TextBox ID="LoginName" runat="server"></asp:TextBox>
            </li>
            <li><span class="formtitle">密码</span>
                <asp:TextBox ID="Password" runat="server"></asp:TextBox>
            </li>
            <li><span class="formtitle">角色</span><asp:DropDownList ID="DropDownList1" runat="server"
                DataSourceID="SqlDataSource2" DataTextField="RoleName" DataValueField="RoleID">
            </asp:DropDownList>
            </li>
            <li><span class="formtitle">底薪</span>
                <asp:Label ID="labAll" runat="server"></asp:Label>
            </li>
            <li><span class="formtitle">令牌条形码</span><asp:TextBox runat="server" ID="Barcode"
                MaxLength="13"></asp:TextBox>
            </li>
            <li><span class="formtitle">所属分行</span>
                <asp:CheckBoxList ID="CheckBoxList1" runat="server" DataSourceID="SqlDataSource1"
                    DataTextField="BranchName" DataValueField="BranchID" RepeatDirection="Horizontal"
                    RepeatLayout="Flow" OnDataBound="BindBranch">
                </asp:CheckBoxList>
            </li>
            <li><span class="formtitle">状态</span>
                <asp:CheckBox ID="Enabled" runat="server" Text="启用" />
            </li>
        </ul>
        <asp:Button runat="server" Text="保存" ID="SaveData" OnClick="SaveData_Click" />
        <asp:Button runat="server" Text="更改底薪" ID="Button1" onclick="Button1_Click"  />
        <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:KOONCRMDB %>"
            SelectCommand="SELECT * FROM [Role]"></asp:SqlDataSource>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:KOONCRMDB %>"
            SelectCommand="SELECT * FROM [Branch]"></asp:SqlDataSource>
    </div>
</asp:Content>
